<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../common/css/jquery-weui.min.css" />
		<link rel="stylesheet" type="text/css" href="../common/css/weui.min.css" />
		<link rel="stylesheet" type="text/css" href="../common/iconfont/iconfont.css" />
		<script src="../common/js/av-min-2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script src="../common/js/base.js" type="text/javascript" charset="utf-8"></script>
		<script src="../common/js/vue.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			* {
				margin: 0px;
				padding: 0px;
			}
			
			body {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				background-color: #F3F5F7;
				font-family: "微软雅黑";
			}
			
			.weui-tabbar__item:nth-child(1) i,
			.weui-tabbar__item:nth-child(1) p {
				color: red;
			}
			
			.searchbox {
				display: -webkit-box;
				-webkit-box-align: center;
				height: 40px;
				width: 100%;
				background-color: rgba(255, 0, 0, 0.8);
			}
			
			.searchbox .logo {
				display: -webkit-box;
				width: 60px;
				height: 20px;
				margin-left: 10px;
				-webkit-box-align: center;
				font-size: 14px;
				color: white;
				font-weight: bold;
			}
			
			.searchbox .search {
				margin-left: 15px;
				display: -webkit-box;
				-webkit-box-flex: 1;
				height: 30px;
				border-radius: 15px;
				-webkit-box-align: center;
				background-color: #FFFFFF;
				color: #C3C3C3;
			}
			
			.searchbox .search input {
				display: -webkit-box;
				height: 30px;
				border: none;
				outline: none;
				margin-right: 15px;
				-webkit-box-flex: 1;
			}
			
			.searchbox .login {
				display: -webkit-box;
				width: 30px;
				height: 40px;
				color: #FFFFFF;
				-webkit-box-align: center;
				margin-right: 10px;
				font-size: 15px;
			}
			
			.searchbox .icon {
				width: 30px;
				font-size: 20px;
				text-align: center;
			}
			
			.footer {
				position: fixed;
				bottom: 0;
			}
			
			.header {
				position: fixed;
				top: 0;
				z-index: 1000;
			}
			
			.banner {
				margin-top: 40px;
			}
			
			.content {
				margin-bottom: 55px;
				overflow: hidden;
			}
			
			.content .bgcolor {
				text-align: center;
			}
			
			.content .bgcolor img {
				width: 40px;
				padding-top: 5px;
			}
			
			.content .bgcolor p {
				color: #666666;
				font-size: 14px;
			}
			
			.activity {
				display: -webkit-box;
				-webkit-box-flex: 1;
				margin-top: 10px;
				line-height: 0;
			}
			
			.buyone,
			.limittime {
				display: -webkit-box;
				-webkit-box-flex: 1;
				margin-top: 5px;
			}
			
			.buyone .product,
			.limittime .product {
				display: -webkit-box;
				-webkit-box-flex: 1;
				background-color: #ffffff;
				-webkit-box-orient: vertical;
				margin: 0 3px;
			}
			
			.buyone .product img,
			.limittime .product img {
				width: 100%;
				display: block;
			}
			
			.buyone .product .title,
			.limittime .product .title {
				display: -webkit-box;
				height: 30px;
				line-height: 15px;
				margin: 0 3px;
				white-space: normal;
				font-size: 12px;
				color: #666;
				overflow: hidden;
				text-overflow: ellipsis;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				word-break: break-all;
			}
			
			.buyone .product .price {
				display: -webkit-box;
				-webkit-box-pack: justify;
				-webkit-box-align: center;
			}
			
			.limittime .product .price {
				display: -webkit-box;
				-webkit-box-orient: vertical;
				position: relative;
			}
			
			.product .price div:nth-child(1) {
				color: rgba(255, 0, 0, 0.6);
				font-size: 16px;
				font-weight: bold;
				margin-left: 8px;
			}
			
			.buyone .price div:nth-child(2) {
				color: #999999;
				font-size: 12px;
				text-decoration: line-through;
				margin-right: 18px;
			}
			
			.limittime .price div:nth-child(2) {
				color: #999999;
				font-size: 12px;
				text-decoration: line-through;
				margin-left: 8px;
			}
			
			.limitlogo {
				width: 25px;
				height: 25px;
				background-size: 75%;
				background-color: #F02B2B;
				background-image: url(img/limit.png);
				background-repeat: no-repeat;
				border-radius: 5px;
				background-position: 3px 5px;
				position: absolute;
				top: 4px;
				right: 8px;
			}
			
			.activity img {
				width: 100%;
			}
			
			.adv {
				display: -webkit-box;
				-webkit-box-flex: 1;
				margin-top: 10px;
				line-height: 0;
			}
			
			.adv div {
				display: -webkit-box;
				-webkit-box-flex: 1;
			}
			
			.adv div img {
				width: 100%;
			}
			
			.settime {
				height: 30px;
				display: -webkit-box;
				-webkit-box-pack: justify;
				-webkit-box-align: center;
				margin-top: 2px;
			}
			
			.settime .info {
				display: -webkit-box;
				-webkit-box-flex: 1;
				font-size: 14px;
				margin-left: 5px;
			}
			
			.settime .time {
				display: -webkit-box;
				-webkit-box-flex: 1;
				font-size: 12px;
				-webkit-box-pack: end;
				margin-right: 5px;
			}
			
			.settime .time span {
				border-radius: 3px;
				background-color: #FF3333;
				margin: 0 3px;
				color: white;
			}
			
			.productlist {
				margin: 0 5px;
				overflow: hidden;
				/*border: 1px solid;*/
			}
			
			.productlist .item {
				width: 49.2%;
				overflow: hidden;
				background-color: white;
				margin-top: 5px;
			}
			
			.productlist .item:nth-child(2n-1) {
				float: left;
			}
			
			.productlist .item:nth-child(2n) {
				float: right;
			}
			
			.productlist .item .pic {
				width: 100%;
				overflow: hidden;
			}
			
			.productlist .item .pic img {
				width: 100%;
				display: block;
			}
			
			.productlist .item .title {
				display: -webkit-box;
				height: 35px;
				line-height: 17px;
				margin-top: 3px;
				padding: 0 3px;
				font-size: 13px;
				color: #666;
				overflow: hidden;
				text-overflow: ellipsis;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				word-break: break-all;
			}
			
			.productlist .item .price {
				display: -webkit-box;
				-webkit-box-pack: justify;
				-webkit-box-align: center;
				font-size: 14px;
			}
			
			.productlist .item .icon {
				color: #F02B2B;
				font-size: 20px;
				margin-right: 5px;
			}
			
			.stop{
				display: none;
			}
			
			
		</style>
	</head>

	<body ontouchstart>
		<div>
			<div class="searchbox header">
				<div class="logo">京东超市</div>
				<div class="search">
					<i class="icon Hui-iconfont">&#xe683;</i>
					<input placeholder="搜索商品" id="" value="" />
				</div>
				<div class="login"></div>
			</div>
			<!--搜索条结束-->
			<div class="content">
				<div class="banner">
					<div class="swiper-container">
						<div class="swiper-wrapper">
							<div class="swiper-slide"><img src="img/58c90522N192da0d6.jpg!q50.jpg.webp.jpg" width="100%" /></div>
							<div class="swiper-slide"><img src="img/58ca417cN0737a13b.png.webp.jpg" width="100%" /></div>
							<div class="swiper-slide"><img src="img/58d264c1N63f84856.jpg!q50.jpg.webp.jpg" width="100%" /></div>
							<div class="swiper-slide"><img src="img/58d9d46dN18a1e5b0.jpg" width="100%" /></div>
						</div>
						<div class="swiper-pagination"></div>
					</div>
				</div>
				<!--轮播图-->
				<div class="weui-flex bgcolor">
					<div class="weui-flex__item">
						<a href="#">
							<div class="placeholder">
								<img src="img/icon_goods.png" />
								<p>1元抢购</p>
							</div>
						</a>
					</div>
					<div class="weui-flex__item">
						<a href="#">
							<div class="placeholder">
								<img src="img/icon_orders.png" />
								<p>商品分类</p>
							</div>
						</a>
					</div>
					<div class="weui-flex__item">
						<a href="#">
							<div class="placeholder">
								<img src="img/icon_integral.png" />
								<p>购物车</p>
							</div>
						</a>
					</div>
					<div class="weui-flex__item">
						<a href="#">
							<div class="placeholder">
								<img src="img/icon_concern.png" />
								<p>我的收藏</p>
							</div>
						</a>
					</div>
				</div>
				<!--选项卡-->
				<div class="activity">
					<img src="img/58ca2416N68dda2ce.gif" />
				</div>
				<div class="buyone">
					<div class="product" v-for="item in buyone">
						<img v-bind:src="item.attributes.image[0]" />
						<div class="title" v-html="item.attributes.title"></div>
						<div class="price">
							<div v-html="item.attributes.price[0]"></div>
							<div v-html="item.attributes.reprice"></div>
						</div>
					</div>
				</div>
				<!--1元抢购结束-->
				<div class="activity">
					<img src="img/58ca2416N68dsssss.gif" />
				</div>
				<div class="settime">
					<div class="info">{{limitInfo}}</div>
					<div class="time">
						<span v-html="isActivity"></span>:<span v-html="limitDay"></span>天<span v-html="limitHour"></span>时<span v-html="limitMinute"></span>分<span v-html="limitSecond"></span>秒
					</div>
				</div>
				<div class="limittime">
					<div class="product" v-for="item in limit" @click="detail(item.attributes.pid)">
						<img v-bind:src="item.attributes.image[0]" />
						<div class="title" v-html="item.attributes.title"></div>
						<div class="price">
							<div v-html="item.attributes.price[0]"></div>
							<div v-html="item.attributes.reprice"></div>
							<div class="limitlogo" v-bind:class="{'stop':isStart}" @click="cartLimit($index)"></div>
						</div>
					</div>
				</div>
				<!--限时抢购结束-->
				<div class="adv">
					<div><img src="img/58bfde07N5b498b58.jpg!q50.jpg.webp" /></div>
					<div><img src="img/58d25101N94474811.jpg!q50.jpg.webp" /></div>
				</div>
				<!--广告结束-->
				<div class="activity">
					<img src="img/58ca6caaN834a389b.png.webp" />
				</div>
				<div class="productlist">
					<div class="item" v-for="item in products" @click="detail(item.attributes.pid)">
						<div class="pic"><img v-bind:src="item.attributes.image[0]" /></div>
						<div class="title" v-html="item.attributes.title"></div>
						<div class="price">
							<div style="display: -webkit-box;">￥
								<div v-html="item.attributes.price[0]"></div>
							</div>
							<div class="icon Hui-iconfont" @click="cart($index)">&#xe670;</div>
						</div>
					</div>
				</div>
			</div>
			<div class="weui-tabbar footer">
				<a href="index.html" class="weui-tabbar__item">
					<div class="weui-tabbar__icon">
						<i class="icon Hui-iconfont">&#xe625;</i>
					</div>
					<p class="weui-tabbar__label">首页</p>
				</a>
				<a href="../type/type.html" class="weui-tabbar__item">
					<div class="weui-tabbar__icon">
						<i class="icon Hui-iconfont">&#xe667;</i>
					</div>
					<p class="weui-tabbar__label">分类</p>
				</a>
				<a href="../fav/fav.html" class="weui-tabbar__item">
					<div class="weui-tabbar__icon">
						<i class="icon Hui-iconfont">&#xe61b;</i>
					</div>
					<p class="weui-tabbar__label">收藏</p>
				</a>
				<a href="../cart/cart.html" class="weui-tabbar__item">
					<div class="weui-tabbar__icon">
						<i class="icon Hui-iconfont">&#xe6b9;</i>
					</div>
					<p class="weui-tabbar__label">购物车</p>
				</a>
				<a href="../register/register.html" class="weui-tabbar__item">
					<div class="weui-tabbar__icon">
						<i class="icon Hui-iconfont">&#xe60d;</i>
					</div>
					<p class="weui-tabbar__label">我的</p>
				</a>
			</div>
		</div>

		<script src="../common/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="../common/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../common/js/fastclick.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				FastClick.attach(document.body);
			});

			$(".swiper-container").swiper({
				loop: true,
				autoplay: 3000
			});
		</script>
		<script src="../common/js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/indexVue.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>